package cn.lg.soar.system.api.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 修改用户信息
 * @author luguoxiang
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@Getter
@Setter
public class UserUpdateDTO implements Serializable {

    private static final long serialVersionUID = -6945054259394053738L;

    @NotNull(message = "id不能为空")
    @Min(value = 0, message = "id不能小于0")
    @ApiModelProperty(value = "主键id")
    private Long id;

    @ApiModelProperty(value = "用户名（账号）", example = "test-user")
    private String username;

    @ApiModelProperty(value = "昵称", example = "测试用户")
    private String nickname;

    @ApiModelProperty(value = "密码(默认：123456)", example = "e10adc3949ba59abbe56e057f20f883e")
    private String password;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty(value = "用户类型")
    private Integer userType;

}
